package com.gxa.zhonglong.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 17728
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("编码规则实体类")
public class Code {

  @ApiModelProperty("编码规则id")
  private Long id;
  @ApiModelProperty(value = "编码名称",required = true)
  private String name;
  @ApiModelProperty(value = "编码前缀",required = true)
  private String prefix;
  @ApiModelProperty(value = "编码中间是否加日期",required = true,dataType = "boolean")
  private Boolean isDate;
  @ApiModelProperty(value = "编码中间是否加时间",required = true,dataType = "boolean")
  private Boolean isTime;
  @ApiModelProperty(value = "编码流水号位数",required = true)
  private String serial;
  @ApiModelProperty(value = "编码示例",required = true)
  private String example;
  @ApiModelProperty(value = "编码起始数",required = true)
  private Long startNum;
  @ApiModelProperty(value = "编码描述",required = true)
  private String desc;

}
